package com.hongye.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hongye.common.utils.PageUtils;
import com.hongye.common.utils.Query;

import com.hongye.house.dao.CoverImgDao;
import com.hongye.house.entity.CoverImgEntity;
import com.hongye.house.service.CoverImgService;


@Service("coverImgService")
public class CoverImgServiceImpl extends ServiceImpl<CoverImgDao, CoverImgEntity> implements CoverImgService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CoverImgEntity> page = this.page(
                new Query<CoverImgEntity>().getPage(params),
                new QueryWrapper<CoverImgEntity>()
        );

        return new PageUtils(page);
    }

}